import React, {Component} from "react";
import {inject, observer} from "mobx-react";
import SelectLaunchActivityType from "./SelectLaunchActivityType";
import MainLaunchActivity from "./MainLaunchActivity"

@inject("activityStore")
@observer
class LaunchActivity extends Component {
    constructor(props) {
        super(props);
    }

    render() {
        const type = this.props.activityStore.activityModel.type;
        return (
            <div>
                {type == -1 ? (
                    (<SelectLaunchActivityType activityStore={this.props.activityStore}/>)
                ) : (<MainLaunchActivity store={this.props.activityStore}/>)}
            </div>
        );
    };
}

export default LaunchActivity;
